import { getTreeList } from '@/api/exam'
const state = {
  treeList: []
}
const mutations = {
  setList(state, treeList) {
    state.treeList = treeList
  }
}
const actions = {
  async getTreeList({ commit }) {
    const { data } = await getTreeList()
    commit('setList', data)
    // console.log(data)
    return data
  }
}
export default {
  namespaced: true,
  state,
  mutations,
  actions
}
